package com.ciban.smarthome.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * yyyy-MM-dd HH:mm:ss
 * 
 * @author lenovo
 * 
 */
public class DateUtils {

	public static String getNow(String str) {
		Date d = new Date();
		return getDateString(d, str);
	}

	private static String getDateString(Date d, String fs) {
		SimpleDateFormat format = new SimpleDateFormat(fs);
		return format.format(d);
	}
}
